<?php

include "database_functions.inc.php";

function new_user ($ugender, $ufirst, $ulast, $ubirth,
		   $umail, $uadd, $ulogin, $utel, $upass,
		   $ucard)
{
  $query_insert_user = sprintf("INSERT INTO customer(cus_card,
					cus_first_name, cus_last_name, cus_birth,
					cus_email, cus_phone, cus_reg_date,
					cus_password, cus_address, cus_username,
					cus_gender)
				VALUES ('%s', '%s', '%s', '%s', '%s',
					'%s', '%s', '%s', '%s', '%s',
					'%s')", $ucard, $ufirst, $ulast, $ubirth, $umail,  $utel, date('Y-m-d'), $upass, $uadd, $ulogin,  $ugender);
  echo $query_insert_user;
  $rs = query($query_insert_user);
}